<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://www.ccut.edu.cn/saturn" prefix="saturn"%>
<%@page import="edu.ccut.saturn.component.SaturnDebugThreadsManager"%>
<%@page import="java.util.Collection"%>
<%@page import="edu.ccut.saturn.component.IDebugThread"%>

<%@ include file="/jsp/include/header/meta.jsp"%>
<%@ include file="/jsp/include/header/stylesheettag.jsp"%>
<%@ include file="/jsp/include/header/javascript.jsp"%>

<html>
<head>
<title>Saturn Debug</title>
</head>
<body>
<%
	String name = request.getParameter("key");
	
	IDebugThread debugThread = SaturnDebugThreadsManager
			.getInstance().getOverDebugThread(name);
		
			request.setAttribute("thread", debugThread);
%>

<saturn:formBeans name="nonull" title="Debug线程明细" action="">
	<saturn:formBean type="label" name="name" label="名称" value="${thread.name}" />
	<saturn:formBeanLine/>
	
	<saturn:formBean type="label" name="startTime" label="开始时间" value="${thread.startTimeStr}" />
	<saturn:formBeanLine/>
	
	<saturn:formBean type="label" name="endTime" label="结束时间" value="${thread.endTimeStr}" />
	<saturn:formBeanLine/>
	
	<saturn:formBean type="label" name="runTime" label="运行时间(秒)" value="${(thread.endTime - thread.startTime) / 1000}"/>
	<saturn:formBeanLine/>
</saturn:formBeans>
</body>
</html>